<?php
require './library/db_constants.php';
require './library/deposits.php';

if(!isset($_GET['id'])) {
    echo 'Invalid id. <a href="listPlanets.php">Go back.</a>';
    exit();
}

$deposits = new deposits;
$deposits->deleteDeposit($_GET['id']);

?>
